import request from './request';

export async function fetchLogin(data: {
  password: string;
  username: string;
}): Promise<RequestFormatResultType<any>> {
  const res = await request('/[APP-NAME]/api/admin/user/login', {
    method: 'POST',
    data,
  });
  return res;
}


export async function logout(): Promise<RequestFormatResultType<any>> {
  const res = await request('/[APP-NAME]/api/admin/user/logout', {
    method: 'POST',
  });
  return res;
}

export async function getPlatformList(): Promise<RequestFormatResultType<any>> {
  const res = await request('/[APP-NAME]/api/admin/user/getPlatformList', {
    method: 'POST',
  });
  return res;
}

